package creator.factory.simpleFactory;


/**
 * 甜品店
 */
public class DessertStore {

    public Coffee orderCoffee(String type) {
//        SimpleCoffeeFactory factory = new SimpleCoffeeFactory();
        //调用生产咖啡的方法
        Coffee coffee = SimpleCoffeeFactory.createCoffee(type);

        //加配料
        coffee.addMilk();
        coffee.addsugar();

        return coffee;
    }
}
